﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.Drawing;
using System.IO;
namespace Intel.Server.GuiPlugins
{
    // 注意: 使用“重构”菜单上的“重命名”命令，可以同时更改代码和配置文件中的接口名“IService1”。
    [ServiceContract]
    public interface IPluginServer
    {
        [OperationContract]
        List<PluginInfo> GetPluginsList();
        [OperationContract]
        Stream GetPic(int Uuid);
        [OperationContract]
        Stream GetPlugin(int Uuid);


        // TODO: 在此添加您的服务操作
    }

    // 使用下面示例中说明的数据协定将复合类型添加到服务操作
    [DataContract]
    public class PluginInfo
    {
        int uuid;
        string name;
        string author;
        DateTime addtime;


        [DataMember]
        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        [DataMember]
        public string Author
        {
            get { return this.author; }
            set { this.author = value; }
        }

        [DataMember]
        public DateTime AddTime
        {
            get { return this.addtime; }
            set { this.addtime = value; }
        }

        [DataMember]
        public int Uuid
        {
            get { return this.uuid; }
            set { this.uuid = value; }
        }
        [DataMember]
        public string DetailInfo
        {
            get;
            set;
        }

    }
}
